import configureStore from './configureStore'

let nodeRoot = [
	{
		tag:"div",
		attr: {
			class:['emidraw-root-slot']
		},
		isRoot: true,
		children:[],
		styles: {},
		positionBy:[]
	}
]
let nodes = [
	{
		tag:"div",
		class:['emidraw-root-slot'],
		isRoot: true,
		children:[
			{
				class:['iii'],
				tag:"div",
				attr:{value:111},
				selector: ['.iii'],
				styles: {
					width: 200
				},
				children:[
					{
						tag: "div",
						class: ['jjj','@@@','###'],
						children: [
							{
								tag: "div",
								class: ['kkk'],
								children: [
									{
										tag: 'img',
										attr: {
											src: ''
										},
										class: ['lll','fit-parent'],
										selector: ['.hhh','.kkk','.lll']
									}
								]
							}
						]
					}
				]
			},
			{text:"A-Level_2-ffffff",tag:"div", children:[]},
			{text:"B-Level_1",tag:"div",children:[
				{text:"B-Level_2-ggggggg",tag:"div",children:[]},
				{text:"B-Level_2-xxxxxxx",tag:"div",children:[
					{ tag: 's'},
					{ 
						tag: 'text',
						text: 'HELLO'
					},
					{ tag: 's'}
				]}
			]}
		]
	}
]

let store = {
	editConfig: false,
	tag: 'div',
	currentNode:{},
	currentPath: [0], // current node path
	operationMode:"select",
	currentDom: null,
	inputStatus: false,
	nodeTree: nodeRoot,
	exportStatus: false,
	license:{
		status: 0, // 0:正常, 1:未激活, 2:许可证超出有效时间, 3: 许可证无效
	},
	slideNumber:{
		status: false,
		start:{x:0,y:0},
		moving:{x:0,y:0},
		end:{x:0,y:0},
		el: {},
		baseValue: 0
	}
};
export default configureStore(store);
